#ifndef PRINTTOOL_H
#define PRINTTOOL_H

#include <QObject>
#include <QMainWindow>
#include <QFileDialog>
#include <QMessageBox>
#include <QDebug>
#include <QPixmap>
#include <QPrinter>
#include <QPrintPreviewDialog>
#include <QPrintDialog>

class PrintTool : public QObject
{
    Q_OBJECT
public:
    explicit PrintTool(QObject *parent = nullptr);
    ~PrintTool();

public slots:
    void printPreviewSlot(QPrinter* printerPixmap); // 打印预览页

public:
    void printEvent(QPixmap printImg); // 打印事件

private:
    QPixmap printImg; // 全局打印图片

};

#endif // PRINTTOOL_H
